//预览图片
function bigSee(obj) {
    let src = $(obj).data('src');
    layer.open({
        title: '视频预览',
        area: ['50%', '100%'],
        content: `<iframe style="width:100%;100%;height:100%;border:0;outline:0;" src="${src}"></iframe>`,
    });
}

/**
 * 删除视频
 * @param obj
 */
function delImg(obj, idFlag = '#photo') {

    let oldPath = $(idFlag).val().trim();
    if (!oldPath) {
        return '';
    }

    let deleteRes = [$(obj).data('src')];
    oldPath = oldPath.split(',');
    oldPath = oldPath.filter(v => !deleteRes.some((item) => item === v))

    oldPath = oldPath.join(',');

    $(idFlag).val(oldPath);
    //删除原图片
    $(obj).parent().remove();
}